<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>添加收货地址</title>
    <div data-th-replace="layout/head"></div>
</head>
<body>
<!-- top bar -->
    <header class="bar bar-nav">
        <a class="button button-link button-nav pull-left goBack" th:href="@{/mobile/uc/userInfo/updateUserAddress}">
            <span class="iconfont icon-fanhui"></span>
        </a>
        <a class="button button-link button-nav pull-right" id="save" href="javascript:void (0);">
            保存
        </a>
        <h1 class='title title-white'>设置收货地址</h1>
    </header>
<!-- top bar end-->
    <div class="content order-content">
        <div class="card">
            <div class="list-block">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">联系人</div>
                                <div class="item-input">
                                    <input name="receiver" th:value="${entity['receiver']}" type="text" placeholder="请输入收货人真实姓名">
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">手机号</div>
                                <div class="item-input">
                                    <input  name="mobile"  th:value="${entity['mobile']}" type="text" maxlength="11" placeholder="请输入收货人常用手机号">
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="card">
            <div class="list-block">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">地区</div>
                                <div class="item-input">
                                    <input style="font-size: .76rem;" id="page-city-picker" readonly type="text" placeholder="请选择">
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">详情</div>
                                <div class="item-input">
                                    <textarea name="address" th:text="${entity['address']}" placeholder="请填写详细地址"></textarea>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<input type="hidden" th:value="${entity['id']}" name="id">

<input type="hidden" th:value="${entity['province']}!=null?${entity['province']['areaName']}:'' " name="province">
<input type="hidden" th:value="${entity['city']}!=null?${entity['city']['areaName']}:'' " name="city">
<input type="hidden" th:value="${entity['town']}!=null?${entity['town']['areaName']}:'' " name="town">
<div data-th-replace="layout/footer"></div>
<script type="text/javascript" th:src="@{{path}/front/mobile/libs/wmui/0.6.2/js/wm-city-picker.min.js?v={v}(path=${staticPath},v=${v})}"></script>
<script type="text/javascript" th:src="@{{path}/front/mobile/business/user/center/userInfo/update-address.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>